//
//  GPSEntity.m
//  Portable Traffic Signal Assistor
//
//  Created by Ding on 10/20/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import "GPSEntity.h"

@implementation GPSEntity
@synthesize location=_location;
@synthesize NSInterfacePoint=_NSInterfacePoint;
@synthesize EWInterfacePoint=_EWInterfacePoint;
@synthesize southLabel=_southLabel;
@synthesize eastLabel=_eastLabel;
@synthesize distanceToLastLabel=_distanceToLastLabel;

- (void) dealloc
{
    [_location release];
    [_NSInterfacePoint release];
    [_EWInterfacePoint release];
    [_southLabel release];
    [_eastLabel release];
    [super dealloc];
}

- (id)initWithLocation:(CLLocation *)location NSInterfacePoint:(InterfacePoint *)NSInterfacePoint EWInterfacePoint:(InterfacePoint *)EWInterfacePoint southLabel:(DynamicSignalLabel *)southLabel eastLabel:(DynamicSignalLabel *)eastLabel;
{
    self=[super init];
    if (self) {
        self.location=location;
        self.NSInterfacePoint=NSInterfacePoint;
        self.EWInterfacePoint=EWInterfacePoint;
        self.southLabel=southLabel;
        self.eastLabel=eastLabel;
    }
    return self;
}

@end
